<template>
    <ul class="statistics-list">
        <li>
            <div class="statistics-list-info">
                <div class="img img1">
                    <img src="@/assets/images/data_1@2x.png">
                </div>
                <div class="info">
                    <a-statistic :title="$t('components.statisticsList.60zebolu7jw0')" :value="detail?.total" :precision="0" :value-from="0" :start="start"
                        animation></a-statistic>
                </div>
            </div>
        </li>
        <li>
            <div class="statistics-list-info">
                <div class="img img2">
                    <img src="@/assets/images/data_2@2x.png">
                </div>
                <div class="info">
                    <a-statistic :title="$t('components.statisticsList.60zebolubzk0')" :value="detail.everyDay" :precision="0" :value-from="0" :start="start"
                        animation></a-statistic>
                </div>
            </div>
        </li>
        <li>
            <div class="statistics-list-info">
                <div class="img img3">
                    <img src="@/assets/images/data_3@2x.png">
                </div>
                <div class="info">
                    <a-statistic :title="$t('components.statisticsList.60zebolucyo0')" :value="detail.dayMax" :precision="0" :value-from="0" :start="start"
                        animation></a-statistic>
                </div>
            </div>
        </li>
        <li>
            <div class="statistics-list-info">
                <div class="img img4">
                    <img src="@/assets/images/data_4@2x.png">
                </div>
                <div class="info">
                    <a-statistic :title="$t('components.statisticsList.60zeboludeg0')" :value="detail.totalTime" :precision="0" :value-from="0" :start="start"
                        animation></a-statistic>
                </div>
            </div>
        </li>
        <li>
            <div class="statistics-list-info">
                <div class="img img5">
                    <img src="@/assets/images/data_5@2x.png">
                </div>
                <div class="info">
                    <a-statistic :title="$t('components.statisticsList.60zeboludn80')" :value="detail.everyTime" :precision="0" :value-from="0" :start="start"
                        animation></a-statistic>
                </div>
            </div>
        </li>
        <li>
            <div class="statistics-list-info">
                <div class="img img6">
                    <img src="@/assets/images/data_6@2x.png">
                </div>
                <div class="info">
                    <a-statistic :title="$t('components.statisticsList.60zebolue240')" :value="detail.maxTime" :precision="0" :value-from="0" :start="start"
                        animation></a-statistic>
                </div>
            </div>
        </li>
    </ul>
</template>

<script setup lang="ts">
import { ref } from 'vue';
//列表（父传子：接收）
const detail:any = defineModel('detail', { default: {} })
const start = ref(true);

</script>

<style lang="less" scoped>
.statistics-list {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap:16px;
    width: 100%;
    height: 100%;

    >li {
        text-align: center;
        list-style-type: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--data-bg-color);
        border: 1px solid var(--data-border-color);
        border-radius: 5px;
        height: 115px;

        >.statistics-list-info {
            display: flex;
            align-items: center;
            width: 190px;

            >.img {
                width: 62px;
                height: 62px;
                border-radius: 50%;
                margin-right: 15px;
                display: flex;
                align-items: center;
                justify-content: center;

                >img {
                    width: 20px;
                    height: 20px;
                }
            }

            >.img1,
            .img4 {
                background-image: radial-gradient(rgba(115, 159, 255, .4), rgba(115, 159, 255, .2), rgba(115, 159, 255, 0.01));
            }

            >.img2,
            .img5 {
                background-image: radial-gradient(rgba(0, 235, 43, .4), rgba(0, 235, 43, .2), rgba(0, 235, 43, 0.01));
            }

            >.img3,
            .img6 {
                background-image: radial-gradient(rgba(255, 234, 77, .4), rgba(255, 234, 77, .2), rgba(255, 234, 77, 0.01));
            }

            >.info {
                height: 70px;
                text-align: left;
            }
        }
    }
}
</style>